package com.jiesen.base.modules.company.service;

import com.jiesen.base.baseDao.BaseService;
import com.jiesen.base.modules.company.model.JsPublicUsersRecord;

import java.util.List;

/**
 * <p>
 * 公海认领记录表 服务类
 * </p>
 *
 * @author bao
 */
public interface IJsPublicUsersRecordService extends BaseService<JsPublicUsersRecord> {

    //根据销售id和公海客户id查询我的客户数据
    List<JsPublicUsersRecord> selectByUserIdAndPublicId(Integer id, Integer pid);

    //根据公海客户list的id修改我的客户状态
    int updateUserRecord(Integer uid,Integer pid,JsPublicUsersRecord jsPublicUsersRecord);

    //计算当前个人客户拥有数量
    int findCountPublicUser(Integer uid);
}
